import { MinLength,IsInt, MaxLength,Allow,Validate } from 'class-validator';
export class DynamicModel {
  
      @MinLength(1,{
        message: 'tag_Page参数必须有'
      })
      tag_Page!: string;
      @MinLength(1,{
        message: 'dynaimc_Page参数必须有'
      })
      dynamic_Page!: string;

      @MinLength(1,{
        message: 'tag_Count参数必须有'
      })
      tag_Count!: string;
      @MinLength(1,{
        message: 'dynamic_Count参数必须有'
      })
      dynamic_Count!: string;

      @MinLength(1,{
        message: 'dynamic_status参数必须有'
      })
      dynamic_status!: string;

      @MinLength(1,{
        message: 'user_Id参数必须有'
      })
      user_Id!: string;
  
  
  
  }

export class ChangeDynamicLike{

  @MinLength(1,{
    message: 'user_Id参数必须有'
  })
  user_Id!: string;
  @MinLength(1,{
    message: 'dynamic_Id参数必须有'
  })
  dynamic_Id!: string;

  @MinLength(1,{
    message: 'isLike参数必须有'
  })
  isLike!: string;

}

export class ChangeDynamicCollection{

  @MinLength(1,{
    message: 'user_Id参数必须有'
  })
  user_Id!: string;
  @MinLength(1,{
    message: 'dynamic_Id参数必须有'
  })
  dynamic_Id!: string;

  @MinLength(1,{
    message: 'isLike参数必须有'
  })
  isCollection!: string;

}

export class SearchTagModel{

  @MinLength(1,{
    message: 'search_Content参数必须有'
  })
  search_Content!: string;

}

export class DynamicNewsModel{

  @MinLength(1,{
    message: 'user_id参数必须有'
  })
  user_id!: number;

  @MinLength(1,{
    message: 'dynamic_Introduce参数必须有'
  })
  dynamic_Introduce!: string;

  @MinLength(1,{
    message: 'dynamic_ImgList参数必须有'
  })
  dynamic_ImgList!: string[];

  @MinLength(1,{
    message: 'dynamic_TagList参数必须有'
  })
  dynamic_TagList!: string[];

}

export class DynamicInfoModel{

  @MinLength(1,{
    message: 'dynamic_Id参数必须有'
  })
  dynamic_Id!: number;
  @MinLength(1,{
    message: 'user_Id参数必须有'
  })
  user_Id!: number;

}


export class getRecentVisitUserDataModel{

  @MinLength(1,{
    message: 'Page参数必须有'
  })
  Page!: string;
  @MinLength(1,{
    message: 'count参数必须有'
  })
  count!: string;
  @MinLength(1,{
    message: 'user_Id参数必须有'
  })
  user_Id!: string;

}
